import Login from "@/views/login/Login";
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import TemplateMng from "@/views/process/TemplateMng";
import TaskMng from "@/views/process/TaskMng";
import UserInfo from "@/views/userinfo/UserInfo";
import Chat from "@/views/chat/Chat";
import SignIn from "@/views/attendence/SignIn";
import Leave from "@/views/apply/Leave";
import NetDisk from "@/views/netdisk/person/NetDisk";

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '工作流管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            {path: '/flow/templateMng', component: TemplateMng, name: '模板管理'},
            {path: '/flow/taskMng', component: TaskMng, name: '任务管理'}
        ]
    },
    {
        path: '/',
        component: Home,
        name: '申请管理',
        iconCls: 'fa fa-server',//图标样式class
        children: [
            {path: '/apply/leave', component: Leave, name: '请假'}
        ]
    },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '组织机构管理',
    //     iconCls: 'fa fa-server',//图标样式class
    //     children: [
    //         {path: '/org/user', component: EmpBasic, name: '用户管理'},
    //         {path: '/org/role', component: PermissMana, name: '角色管理'},
    //         {path: '/org/department', component: DepMana, name: '部门管理'}
    //     ]
    // },
    {
        path: '/',
        component: Home,
        name: '个人信息',
        iconCls: 'fa fa-server',
        children: [
            {path: '/userinfo', component: UserInfo, name: '个人信息'},
        ]
    },

    {
        path: '/',
        component: Home,
        name: '考勤模块',
        iconCls: 'fa fa-server',
        children: [
            {path: '/SignIn', component: SignIn, name: '考勤模块'},
        ]
    },
    {
        path: '/netdisk',
        component: Home,
        name: '网盘',
        iconCls: 'fa fa-server',
        children: [
            {path: '/person', component: NetDisk, name: '网盘'},
        ]
    },
    {
        path: '/',
        component: Home,
        name: '聊天',
        iconCls: 'fa fa-server',
        children: [
            {path: '/chat', component: Chat, name: '聊天'},
        ]
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '*',
        hidden: true,
        redirect: {path: '/404'}
    }
];

export default routes;
